package com.seecen.controller;

import com.seecen.common.BaseResponse;
import com.seecen.service.CategoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: allmaster-end
 * @description:
 * @author: ZGJ
 * @create: 2025-10-16 11:10
 * @version: 1.0
 **/
@Slf4j
@RestController
@RequestMapping("/category")
@CrossOrigin
public class CategoryController {

    @Autowired
    private CategoryService categoryService;

    @GetMapping("findBigType")
    public BaseResponse<List> findBigType(){
        return categoryService.findBigType();
    }

    @GetMapping("findSmallType")
    public BaseResponse<List> findSmallType(){
        return categoryService.findSmallType();
    }

    @GetMapping("findService")
    public BaseResponse<List> findService(){
        return categoryService.findService();
    }

}
